package gebze;

import javax.jws.WebService;
import javax.jws.WebMethod;
import javax.jws.WebParam;

/**
 *
 * @author handan
 */
@WebService(serviceName = "NewWebService")
public class GbzService {

    @WebMethod(operationName = "getDataFromClient")
    public byte[] getDataFromServer(@WebParam(name = "ip") String ip) {
        GbzServer server = new GbzServer();
        byte[] gelenveri = server.getDataFromClient(ip);
        if (gelenveri == null) {
            System.out.println("dosya okunamadi.");
        }
        return gelenveri;
    }
}
